import { BaseEntity } from "src/baseEntity";
import { System } from "src/system/system.entity";
import { UserSys } from "src/user/userSys.entity";
import { Column, Entity, ManyToOne } from "typeorm";



@Entity("depart")
export class Depart extends BaseEntity {
    @ManyToOne(() => System)
    system: System

    @ManyToOne(() => UserSys)
    user: UserSys

    @Column({ comment: "离职时间", type: "timestamp", nullable: true })
    time: Date

    @Column({ comment: "原因", nullable: true })
    reason: string

    @Column({ comment: "备注", nullable: true })
    comment: string
}